package com.cskaoyan.demo6.service;

import com.cskaoyan.demo6.bean.Log;
import com.cskaoyan.demo6.mapper.AdminMapper;
import com.cskaoyan.demo6.mapper.LogMapper;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalTime;
@Service
public class LogServiceImpl implements LogService{
    @Autowired
    LogMapper logMapper;

    @Override
    public void addLog(Log log) {

        log.setAdd_time(LocalTime.now());
        logMapper.insert(log);
    }
}
